import {setServer} from "@/utils/axios";
import {fireUrl} from "../../../url";
const request = setServer(fireUrl);

// 查询消防报警信息
export function getFireAlarmEvent(query) {
  return request({
    url: '/alarmEvent/',
    method: 'get',
    params: query
  })
}

// 重新加载报警信息
export function reloadFireAlarmEvent(query) {
  return request({
    url: '/alarmEvent/reload',
    method: 'get',
    params: query
  })
}

// 处理消防事件
export function checkAlarmEvent(query) {
  return request({
    url: '/alarmEvent/handler',
    method: 'put',
    params: query
  })
}
